Skip to content

Conversation

Akrog
Copy link

@Akrog Akrog commented May 29, 2020

We currently have a couple of issues with the enabling and disabling of debug logs:

  • Passing "debug=True" on client creation will not output ssh logs.
  • Calling debug_rest to set debug logs will not enable logs on SSH if the ssh client has not yet been created.
  • Once enabled, SSH and HTTP debug logs cannot be disabled.

This PR fixes those 2 issues.

Closes #76

We currently have a couple of issues with the enabling and disabling of
debug logs:

- Passing "debug=True" on client creation will not output ssh logs.

- Once enabled, SSH and HTTP debug logs cannot be disabled.

This patch fixes the first issue by making "set_debug_flag" as class
methods and always calling ssh's "set_debug_flag", unlike now that we
only call it when the ssh instance has already been created.

For the second issue we add the missing disabling code in both
"set_debug_flag" methods.

Closes hpe-storage#76
@hemna
Copy link
Contributor

hemna commented Sep 22, 2021

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug logging cannot be disabled and SSH logs are not enabled when passing debug=True on client init
2 participants